// pages/coach_list/coach_list.js
const app = getApp()
Page({

  data: {
    myteam: [],
    sum:0
  },
  onLoad: function (options) {
    let that = this
    wx.request({
      url: app.url + 'weiapp/api/getMyTeam',
      data: {
        uid:wx.getStorageSync('uid')
      },
      success: function (res) {
        console.log(res.data)
        that.setData({
          myteam: res.data.data,
          sum:res.data.sum
        })
      }
    })
  }
})